package com.sdkj.jiang.mapper;

import com.sdkj.jiang.dto.EmpDto;
import com.sdkj.jiang.po.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface EmpMapper {

    @Select("select * from emp")
    public List<Emp> findAll();

    public  List<Emp> findByParam(EmpDto empDto);

    public int save(EmpDto empDto);

    public List<Map<String,Object>> findToMap();

    public List<Emp> findToEntity();

    public int delete(int deptno);

    public int update(EmpDto empDto);

}
